package RiverCrossingMinigame;

// Some code was adapted from the Virginia CS homework assignments and 
// tutorials/examples/explanations found here http://www.cs.virginia.edu/cs201j/problem-sets/ps5/

import javax.swing.*;

import GUIInterfaces.OregonPanel;

import java.awt.*;

/**
 * Main method that launches the River crossing minigame
 * 
 * @author Ray DeCuir
 * @version 1.0
 *
 */

public class GameDriver {
	private static final int FRAME_WIDTH = 600;
	private static final int FRAME_HEIGHT =300;

	public static int won = 0;
	
	
	private static JFrame frame = new JFrame ("CS 2340 Team Mexican Buzz");
	public static void main (String [] args) 
	{
		frame = new JFrame ("CS 2340 Team Mexican Buzz");
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.setSize (FRAME_WIDTH, FRAME_HEIGHT);

		Grid grid = new Grid (20, 9);

		//GamePanel panel = new GamePanel (FRAME_HEIGHT, FRAME_WIDTH, grid,);

		//frame.getContentPane().add (panel, BorderLayout.CENTER);
		//frame.addKeyListener(panel);

		frame.setVisible(true);
	}
	public static void close() {
		frame.setVisible(false);
		
	}
	
	public void done(OregonPanel op) {
		// TODO Auto-generated method stub
		//do nothing
	}
}



